﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Micro;
using GTServices.Entities;
using GTServices.WPF.Client.Interfaces;

namespace GTServices.WPF.Client.ViewModels.Entities
{
    public class FileInfoViewModel : PropertyChangedBase, IEntityViewModel
    {
        private FileInfo _fileInfo;
        public FileInfo FileInfo
        {
            get { return _fileInfo; }
            set
            {
                _fileInfo = value;
                NotifyOfPropertyChange(() => FileInfo); 
            }
        }
        public object Model { 
            get { return FileInfo; }
            set
            {
                if (value is FileInfo)
                    FileInfo = value as FileInfo;
            }
        }
        public FileInfoViewModel()
        {

        }
    }
}
